package com.ruoyi.user.service;

import com.ruoyi.common.core.domain.PageQuery;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.user.domain.bo.UserHelpGroupBo;
import com.ruoyi.user.domain.vo.UserHelpGroupVo;

import java.util.Collection;
import java.util.List;

/**
 * 帮扶小组Service接口
 *
 * @author strongme
 * @date 2023-01-26
 */
public interface IUserHelpGroupService {

    /**
     * 查询帮扶小组
     */
    UserHelpGroupVo queryById(Long helpGroupId);

    List<UserHelpGroupVo> queryByUserId(Long userId);


    /**
     * 查询帮扶小组列表
     */
    TableDataInfo<UserHelpGroupVo> queryPageList(UserHelpGroupBo bo, PageQuery pageQuery);

    /**
     * 查询帮扶小组列表
     */
    List<UserHelpGroupVo> queryList(UserHelpGroupBo bo);

    /**
     * 新增帮扶小组
     */
    Boolean insertByBo(UserHelpGroupBo bo);

    /**
     * 修改帮扶小组
     */
    Boolean updateByBo(UserHelpGroupBo bo);

    /**
     * 校验并批量删除帮扶小组信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
